{if $this->operate == 'System'}
{template header}
<script type="text/javascript">
var commonAddUrl 	= '{:U('index/addsystem?isPost=1')}';
var commonEditUrl	= '{:U('index/editsystem')}';
var commonDelUrl	= '{:U('index/delsystem')}';
</script> 
<div class="loading3" id="loading3">加载中...</div>
<div id="header-menu" attr="系统配置">
  <div class="menu-btn" id="add"> <a href="javascript:;">添加</a>
    <div class="menu-btn-l"></div>
    <div class="menu-btn-r"></div>
  </div>
</div>
<div class="clear"></div>
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-1 c-item" width="30">ID</td>
    <td class="title-1 c-item">网站名称</td>
    <td class="title-1 c-item" width="120">语言</td>
    <td class="title-2 c-item" width="150">操作</td>
  </tr>
</table>
<div id="main-body">
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
  {loop $list $key $vo}
  <tr>
    <td class="td-0 c-item" height="20" width="24">{$vo['id']}</td>
    <td class="td-1">{$vo['name']}</td>
    <td class="td-1 c-item" width="114">{$vo['lang_str']}</td>
    <td class="td-2 c-item" width="144"><a href="javascript:;" onclick="commonEdit({$vo['id']})">修改</a> <a href="javascript:;" onclick="commonDel({$vo['id']});">删除</a></td>
  </tr>
  {/loop}
</table>
</div>
<div class="bottom-bar">
  &nbsp;
</div>
<div class="clear"></div>
{template footer}
{elseif $this->operate == 'Addsystem'}
<form name="myform" id="myform" method="post" action="{:U('index/addsystem')}">
<table border="0" align="center" width="400" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-0 c-item" colspan="2">添加配置</td>
  </tr>
  <tr>
    <td class="td-0-1" width="40%" height="20" align="right">网站名称：</td>
    <td class="td-1"><input type="text" name="data[name]" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">网址：</td>
    <td class="td-1"><input type="text" name="data[url]" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">关键字：</td>
    <td class="td-1">
    <textarea name="data[keywords]" cols="35" rows="5"></textarea>
    </td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">网站说明：</td>
    <td class="td-1">
    <textarea name="data[description]" cols="35" rows="5"></textarea>
    </td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">所属于语言：</td>
    <td class="td-1">
    <select name="data[lang_id]" id="lang_id">
    <option value="">=请选择=</option>
    {loop $lang_item $key $v}
    <option value="{$key}">{$v}</option>
    {/loop}
    </select>
    </td>
  </tr>
</table>
<div class="loading2" id="loading2"></div>
</form>
{elseif $this->operate == 'Editsystem'}
<form name="myform" id="myform" method="post" action="{:U('index/editsystem?id='.$vo['id'])}">
<table border="0" align="center" width="400" cellpadding="0" cellspacing="0">
  <tr>
    <td class="title-0 c-item" colspan="2">添加配置</td>
  </tr>
  <tr>
    <td class="td-0-1" width="40%" height="20" align="right">网站名称：</td>
    <td class="td-1"><input type="text" name="data[name]" value="{$vo['name']}" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">网址：</td>
    <td class="td-1"><input type="text" name="data[url]" value="{$vo['url']}" size="30" class="input-1" /></td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">关键字：</td>
    <td class="td-1">
    <textarea name="data[keywords]" cols="35" rows="5">{$vo['keywords']}</textarea>
    </td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">网站说明：</td>
    <td class="td-1">
    <textarea name="data[description]" cols="35" rows="5">{$vo['description']}</textarea>
    </td>
  </tr>
  <tr>
    <td class="td-0-1" height="20" align="right">所属于语言：</td>
    <td class="td-1">
    <select name="data[lang_id]" id="lang_id">
    <option value="">=请选择=</option>
    {loop $lang_item $key $v}
    <option value="{$key}"{if $vo['lang_id']==$key} selected="selected"{/if}>{$v}</option>
    {/loop}
    </select>
    </td>
  </tr>
</table>
<div class="loading2" id="loading2"></div>
</form>
{/if}